<?php

/**
 * contact : 刘经理 19326416371
 * company : 版权所属 四川北星惯牌科技有限公司
 **/

namespace app\common\manager;

class BaseManager
{
    public static $statusCode=1;
    public static $successCode = 1;
    public static $failCode = 0;

    public static $data = [];

    public static $successMessage = '执行成功';
    public static $failMessage = '执行失败';

    public static $message = '执行成功';

    public static function setSuccessMessage($message):void
    {
        self::$successMessage = $message;
    }

    public static function getSuccessMessage():string
    {
        return self::$successMessage;
    }

    public static function setFailMessage($message):void
    {
        self::$failMessage = $message;
    }

    public static function getFailMessage():string{
        return self::$failMessage;
    }

    public static function setStatusCode($code):void{
        self::$statusCode = $code;
    }

    public static function getStatusCode():int{
        return self::$statusCode;
    }

    public static function setMessage($message):void
    {
        self::$message = $message;
    }

    public static function getMessage():string
    {
        return self::$message;
    }

    public static function setData($data):void
    {
        self::$data = $data;
    }

    public static function getData()
    {
        return self::$data;
    }
}